package com.airy.apprepairequipment.service.impl;


import com.airy.apprepairequipment.common.utils.PageUtils;
import com.airy.apprepairequipment.common.utils.Query;
import com.airy.apprepairequipment.dao.DevConfigDao;
import com.airy.apprepairequipment.entity.DevConfigEntity;
import com.airy.apprepairequipment.service.DevConfigService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("devConfigService")
public class DevConfigServiceImpl extends ServiceImpl<DevConfigDao, DevConfigEntity> implements DevConfigService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DevConfigEntity> page = this.page(
                new Query<DevConfigEntity>().getPage(params),
                new QueryWrapper<DevConfigEntity>()
        );

        return new PageUtils(page);
    }

}